# 员工中出现的异常
class DuplicateEid(Exception):
    """
    员工号重复

    """

    def __init__(self, value='员工号重复!'):
        self.value = value

    def __str__(self):
        return repr(self.value)


class NotFindEid(Exception):
    """
    员工号找不到

    """

    def __init__(self, value='员工号找不到!'):
        self.value = value

    def __str__(self):
        return repr(self.value)


class ErrorEid(Exception):
    """
    员工号长度错误，应该为10位

    """

    def __init__(self, value='员工号长度错误，应该为10位!'):
        self.value = value

    def __str__(self):
        return repr(self.value)
